import { SetMetadata } from '@nestjs/common';

export const IS_PUBLIC_KEY = 'isPublic';

/**
 * 标记为公共的路由，无需token访问
 */
export const Public = () => SetMetadata(IS_PUBLIC_KEY, true);
